WPTravelEngine\Core\Booking D

Total Complexity 208
Dependencies 10
Dependents 3
Total lines 1,782
Lines of code 1,215
Logical lines of code 577
Comment lines 333
Methods 40
Properties 2

Methods 40

Method Rating Maintainability Complexity Lines of code
init_hooks()
D
18
48 245
payment_gateway_callback_backward_compatibility()
D
22
39 214
map_payment_data_to_new_booking_structure()
B
33 14 105
payment_gateway_callback_listener()
A
37 12 85
booking_process()
A
41 9 56
prepare_legacy_order_metas()
A
44 8 44
get_callback_token_payload()
S
51 7 27
init()
S
44 5 55
due_payment_process()
S
47 5 35
update_order_items()
S
50 4 27
prepare_billing_info()
S
60 4 13
update_payment_info()
S
51 3 26
send_emails()
S
61 4 11
get_thankyou_url()
S
54 3 23
get_tokened_url()
S
56 3 18
update_booking()
S
67 4 7
get_booking_info_by_id()
S
64 4 10
create_payment()
S
46 1 41
check_payments()
S
57 2 17
error()
S
65 3 9
is_booking_request()
S
77 3 3
insert_booking()
S
54 1 23
booking_only()
S
56 1 19
direct_bank_transfer()
S
59 1 15
instance()
S
72 2 6
redirect()
S
68 2 7
is_valid_nonce()
S
76 2 3
is_due_payment_request()
S
77 2 3
remove_tokened_query_params()
S
72 1 11
may_be_cart_is_empty()
S
76 1 4
update_billing_info()
S
74 1 4
__construct()
S
78 1 4
create_booking()
S
81 1 3
get_cancel_url()
S
65 1 10
get_return_url()
S
78 1 3
get_notification_url()
S
65 1 10
get_success_url()
S
65 1 10
init_shortcodes()
S
76 1 4
includes()
S
91 1 2
get_booking_cart()
S
82 1 3